package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "shop_product")
public class Product implements Serializable {

	private static final long serialVersionUID = 888118629314938653L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "show_price_money", columnDefinition = "decimal(10,2)")
	private BigDecimal showPrice;
	@Column(name = "sale_price_money", columnDefinition = "decimal(10,2)")
	private BigDecimal salePrice;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Integer disable;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "is_recommend_bit", columnDefinition = "tinyint(1)")
	private Integer isRecommend;
	@Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
	private String img;
	@Column(name = "sale_count_int", columnDefinition = "int(11)")
	private Integer saleCount;
	@Column(name = "remark_nvarchar", columnDefinition = "varchar(255)")
	private String remark;
}
